package com.deworks.admin.common.exception;

public class AdbException extends RuntimeException {
    private String errorCode;
    private String errorMsg;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }


    public AdbException(String errorCode, String errorMsg, Throwable cause) {
        super("code:" + errorCode + ",msg:" + errorMsg, cause);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public AdbException(String errorCode, String errorMsg) {
        super("code:" + errorCode + ",msg:" + errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
